From ccf869c608ba1f5b09f0b7783c95bf428a8d5a6b Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 19 Oct 2006 20:26:00 +0000 Subject: [PATCH] Obey local bounds in HSA reader. --- gpsbabel/hsa_ndv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/hsa_ndv.c b/gpsbabel/hsa_ndv.c index 58a41e1cd..bb85c71c7 100644 --- a/gpsbabel/hsa_ndv.c +++ b/gpsbabel/hsa_ndv.c @@ -233,7 +233,7 @@ hsa_ndv_read(void) { char *bad; - buf[len] = 0; + buf[len-1] = 0; if (NULL != strstr(buf, "nver=1")) {//its the older format, not xml fseek(fd, 0, SEEK_SET); -- 2.30.2